package com.yejhxt.apiInterface;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestParam;

public interface UserInterface {
	public void getMessage(@RequestParam(value = "phonenumber", defaultValue = "") String PhoneNumber,String isforgot,
			@RequestParam(value = "web", defaultValue = "") String web, HttpServletRequest request, Model model,
			HttpSession session, HttpServletResponse response);

	public void registerHandler(@RequestParam(value = "phonenumber", defaultValue = "") String PhoneNumber,
			@RequestParam(value = "validatecodeid", defaultValue = "") String vaidatecodeid,
			@RequestParam(value = "password", defaultValue = "") String Password,
			@RequestParam(value = "validatecode", defaultValue = "") String validateCode,
			@RequestParam(value = "web", defaultValue = "") String web, HttpServletRequest request,
			HttpServletResponse response, Model model, HttpSession session);
	
	public void LoginHandler(@RequestParam(value = "phonenumber", defaultValue = "") String PhoneNumber,
			@RequestParam(value = "password", defaultValue = "") String Password,
			@RequestParam(value = "web", defaultValue = "") String web, HttpServletRequest request,
			HttpServletResponse response, Model model, HttpSession session) ;

	public void PasswordForgotHandler(@RequestParam(value = "phonenumber", defaultValue = "") String PhoneNumber,
			@RequestParam(value = "validatecodeid", defaultValue = "") String vaidatecodeid,
			@RequestParam(value = "password", defaultValue = "") String Password,
			@RequestParam(value = "validatecode", defaultValue = "") String validateCode,
			@RequestParam(value = "web", defaultValue = "") String web, HttpServletRequest request,
			HttpServletResponse response, Model model, HttpSession session);

	public void PasswordUpdateHandler(@RequestParam(value = "access_token", defaultValue = "") String sid,
			@RequestParam(value = "password", defaultValue = "") String Password,
			@RequestParam(value = "newpassword", defaultValue = "") String newPassword,
			@RequestParam(value = "web", defaultValue = "") String web, HttpServletRequest request,
			HttpServletResponse response, Model model, HttpSession session) ;
	
	
}